import axios from '~/axios'

//添加活动
export function addActivityApi(data) {
    return axios.post('/basic/lindi/activity/addActivity', data)
}

//删除活动
export function deleteActivityByActivityIdApi(activityId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/activity/deleteActivityByActivityId',
        params: {
            ActivityId: activityId
        }
    })
}

//修改活动
export function updateActivityByActivityIdApi(data) {
    return axios.put('/basic/lindi/activity/updateActivityByActivityId', data)
}

//获取活动列表 - 分页
export function getPageActivityListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/activity/getPageActivityList',
        params: params
    })
}

//获取活动详细信息
export function getActivityByActivityIdApi(activityId) {
    return axios.get(`/basic/lindi/activity/getActivityByActivityId/${activityId}`)
}